#include "decomposition_task.h"

Decomposition_Task::Decomposition_Task()
{

}

void Decomposition_Task::init(QString task_id,QString taskdata)        //初始化
{
     this->task_id=task_id;
     this->task_data=taskdata;
}

void Decomposition_Task::setProblemStatus(Ctask_status status)         //设置任务状态
{
    this->problem_status=status;
}
void Decomposition_Task::setBelongComputer(QString computerId)         //设置电脑ID
{
    this->belong_computer_id=computerId;
}
void Decomposition_Task::setStartTime(QString Time)                  //设置开始时间
{
    this->starttime=Time;
}
void Decomposition_Task::setCreateTime(QString Time)                 //设置创建时间
{
    this->create_time=Time;
}
void Decomposition_Task::setFinishTime(QString Time)                 //设置结束时间
{
    this->finish_time=Time;
}
void Decomposition_Task::setCaculateTime(QString time)                     //设置计算耗时
{
    this->caculate_time=time;
}
void Decomposition_Task::setTaskResult(QString result)                 //设置任务结果
{
    this->task_result=result;
}
void Decomposition_Task::setBelongTaskID(QString ID)                   //设置主任务ID
{
    this->belong_caculate_task_id=ID;
}

void Decomposition_Task::setTaskData(QString taskdata)                //设置任务信息
{
    this->task_data=taskdata;
}

void Decomposition_Task::setTaskType(QString tasktype)                //设置任务类型
{
    this->problem_type=tasktype;
}

QString Decomposition_Task::getTaskid()                                //任务ID
{
    return this->task_id;
}

QString Decomposition_Task::getTaskData()                              //获取任务信息
{
    return this->task_data;
}
Ctask_status Decomposition_Task::getProblemStatus()                    //获取任务状态
{
    return this->problem_status;
}
QString Decomposition_Task::getBelongComputer()                        //获取电脑ID
{
    return this->belong_computer_id;
}
QString Decomposition_Task::getStartTime()                           //获取开始时间
{
    return this->starttime;
}
QString Decomposition_Task::getCreateTime()                          //获取创建时间
{
    return this->create_time;
}
QString Decomposition_Task::getFinishTime()                          //获取结束时间
{
    return this->finish_time;
}
QString Decomposition_Task::getCaculateTime()                              //获取计算耗时
{
    return this->caculate_time;
}
QString Decomposition_Task::getTaskResult()                            //获取任务结果
{
    return this->task_result;
}
QString Decomposition_Task::getBelongTaskID()                          //获取主任务ID
{
    return this->belong_caculate_task_id;
}


QString Decomposition_Task::getTaskType()                              //获取任务类型
{
    return this->problem_type;
}
